package com.smarthome.core.deviceManager;

import java.util.List;

import com.smarthome.domain.bean.ShEquipmentProducer;
import com.smarthome.domain.vo.boss.Combobox;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;

/**
 * 设备供应商管理server类
 * @author szc
 *
 */
public interface EquipmentProducerService {

    /**
     * 得到设备供应商列表--分页
     * @param deviceSupplier
     * @param page
     * @return
     */
    DataGrid dataGrid(ShEquipmentProducer equipmentProducer, PageHelper page);

    /**
     * 新增设备供应商信息
     * @param deviceSupplier
     */
    void add(ShEquipmentProducer equipmentProducer);

    /**
     * 通过主键id，得到对象
     * @param id
     * @return
     */
    ShEquipmentProducer queryShDeviceSupplierById(Long id);

    /**
     * 更改
     * @param
     */
    void edit(ShEquipmentProducer equipmentProducer);

    /**
     * 更新
     * @param equipmentProducer
     * @author KongXiangyu
     */
    void saveOrUpdate(ShEquipmentProducer equipmentProducer);

    /**
     * 得到供应商下拉选项
     * @param flag
     * @return
     */
    List<Combobox> getShEquipmentProducerCombobox(boolean flag);

    /**
     * 得到设备供应商列表
     * @param deviceSupplier
     * @return
     */
    List<ShEquipmentProducer> queryShEquipmentProducerList(ShEquipmentProducer equipmentProducer);

}
